import {
  Column,
  CreateDateColumn,
  Entity,
  PrimaryGeneratedColumn,
  UpdateDateColumn,
} from 'typeorm';
@Entity('dept')
export class Dept {
  @PrimaryGeneratedColumn()
  id: string;
  @Column({ name: '父id' })
  parentId: number;
  @Column({ name: '部门名称' })
  name: string;
  @Column({ name: '部门编号' })
  deptNum: string;
  @Column({ name: '显示排序' })
  desc: string;
  @Column({ name: '状态' })
  status: number;
  @CreateDateColumn({ name: '创建时间' })
  createTime: Date;
  @UpdateDateColumn({ name: '更新时间' })
  updateTime: Date;
}
